﻿<%@ Page Language="C#" MasterPageFile="~/Common/Master/FrameMain.master" Theme="SkinFile" AutoEventWireup="true" Inherits="WebMail_Account_List" Title="无标题页" Codebehind="List.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="toolbar">
        <ul>
            <li><a id="lnkAdd" runat="server" href="javascript:go()"><span><b style="background-image: url(../../../common/images/icons/addnew.gif);">
                &nbsp;</b>
                <asp:Literal ID="Literal1" runat="server" Text="增加"></asp:Literal>
            </span></a></li>
            <li>
                <asp:Button ID="btnRefresh" CssClass="hide" runat="server" Text="Button" 
                    onclick="btnRefresh_Click" /></li>
        </ul>
    </div>
    <div id="head">
        <div class="left">
            <asp:Label ID="Label8" runat="server" Text="外部邮件账号："></asp:Label>
        </div>
    </div>
    <div id="list">
        <asp:GridView ID="gvList" runat="server" Width="100%" AutoGenerateColumns="False"
            OnRowDataBound="gvList_RowDataBound" SkinID="GridView" 
            onrowdeleting="gvList_RowDeleting">
            <Columns>
                <asp:TemplateField>
                    <ItemStyle CssClass="sp" />
                    <HeaderStyle CssClass="sp" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="邮箱地址">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("MailAddr") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="显示名称">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("DispName") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="POP3服务器">
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Eval("Pop3Server") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="POP3端口">
                    <ItemTemplate>
                        <asp:Label ID="Label4" runat="server" Text='<%# Eval("Pop3Port") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="SMTP服务器">
                    <ItemTemplate>
                        <asp:Label ID="Label5" runat="server" Text='<%# Eval("SmtpServer") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="SMTP端口">
                    <ItemTemplate>
                        <asp:Label ID="Label6" runat="server" Text='<%# Eval("SmtpPort") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="默认账户">
                    <ItemTemplate>
                        <asp:Label ID="Label7" runat="server" 
                            Text='<%# ((bool)Eval("IsDefault"))?"是":"否" %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:HyperLink ID="lnkEdit" runat="server">[修改]</asp:HyperLink>
                        <asp:LinkButton ID="btnDelete" runat="server" CommandName="Delete">[删除]</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                
                </Columns>
            </asp:GridView>
    </div>
</asp:Content>

